#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>
#include<stdlib.h>
int comp(const void* e1, const void* e2)
{
	return (*(int*)e1) - (*(int*)e2);
}
int main(void)
{
	int a = 0;
	scanf("%d", &a);
	int* arr = new int[a];

	int t = 0;
	int tt = 0;
	int ttt = 0;
	int tttt = a;

	while (a--)
	{
		scanf("%d", &t);
		ttt = 0;
		for (int x = 0; x < tttt; ++x)
		{
			
			if (arr[x] == t)
			{
				ttt++;
					break;
			}
		}
		if (ttt != 1)
		{
			
			arr[tt] = t;
			tt++;
		}
	}
	qsort(arr, tt, 4, comp);
	for (int x = 0; x < tt; ++x)
	{
		printf("%d ", arr[x]);
	}
}